package com.cjw.pojo.entity.livesquare;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @create_time: 2021.11.15
 * @author : cjw
 * @descripe: 父评论存储实体
 */
@Data
@ToString(callSuper = true)
@Table(name = "comment_parent")
@ApiModel("父评论存储实体")
public class CommentParent {

    @Id
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("添加时间")
    private Date addTime;

    @ApiModelProperty("评论内容")
    private String context;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("生活分享id")
    private Long liveId;

    @ApiModelProperty(name = "类型", notes = "0-生活分享 1-朗读")
    private Integer type;
}
